﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>友情链接信息管理</title>
<script>
$(document).ready(function(){

		$("#name").focus();
		$("#linksForm").validate({
			 rules: { 
				name: { 
        			required: true, 
        			maxlength:50,
        			remote: "authoritiesAction!checkName.action?orgName=${authorities.name}&math="+Math.random()
    			},
    			displayName:
    			{
    				required: true, 
        			maxlength:50,
        			remote: "authoritiesAction!checkDisplayName.action?orgName=${authorities.displayName}&math="+Math.random()
    			}
    			
			},
			messages: {
				name: {
					remote: "该权限名称已存在"
				},
				displayName:
				{
					remote: "该显示名称已存在"
				}
			},
			success: function(label) {
				label.html("&nbsp;").addClass("checked");
	        }	
		});
	});	
</script>	
	</head>
	<body>
 	  <table class="listTable2">
			<tr>
				<td width="20px">
					<img src="${ctx}/image/jwc/tb.gif" width="16" height="16" />
				</td>
				<td width="90%">
					<span class="color:#000">当前位置</span>：[用户管理 - 权限管理 - 编辑权限信息]
				</td>
				<td>
					<input type="button" value="返回" onclick="history.back()"/>
				</td>
			</tr>
		</table>
 	 
		<form action="authoritiesAction!update.action" method="post" id="linksForm" enctype="multipart/form-data" method="post">
			<input type="hidden" name="id" value="${authorities.id}"/>
		<table  align="center" class="listTable3" width="90%">
			<tr>
				<td>权限名称</td>
				<td>
					<input type="text" name="name" value="${authorities.name}"/>
				</td>
			</tr>
			<tr>
				<td>显示名称</td>
				<td>
					<input type="text" name="displayName" value="${authorities.displayName}"/>
				</td>
			</tr>
			<tr>
				<td>
					状态
				</td>
				<td>
					<select name="authorities.authoritiesType">
						<option value="1">栏目</option>
						<option value="0" <c:if test="${authorities.authoritiesType == 0}">selected</c:if>>
							菜单
						</option>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center">
				<input type="submit" value=" 提 交 "/>
				</td>
			</tr>
	 	</table>
	</form>
	</body>
</html>

